import React, {
  useEffect,
  useState,
  forwardRef,
  useImperativeHandle,
} from "react";
import { useInitData } from "../../hooks/useInitData";
import titleText from "@/assets/images/titleText.png";

const Header1 = (props: any, ref: any) => {
  console.log("Header1111", props, ref);

  useImperativeHandle(ref, () => {
    return {
      onFinsh,
    };
  });
  const onFinsh = () => {
    console.log("onFinsh");
  };

  return (
    <div>
      <div>HEAD11111</div>
      <img src={titleText} alt="" />
    </div>
  );
};

export default forwardRef(Header1);
